﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using com.nm.Attributes;
using Newtonsoft.Json;

namespace TerminalAPI.models
{
    class GoodData
    {
        /// <summary>
        /// 货架列表
        /// </summary>
        public class ListGoodShelfData : ModifyGoodData
        {
            [ParamDescription("图片")]
            public string Image { get; set; }
        }

        public class ModifyGoodData : GoodShelfData
        {
            [ParamDescription("货架ID")]
            public int GSID { get; set; }
        }


        #region 货架基本资料
        public class GoodShelfData
        {
            [ParamDescription("货架编号")]
            public string GSCode { get; set; }

            [ParamDescription("货架名称")]
            public string GSName { get; set; }

            [ParamDescription("陈列类别")]
            public string Category { get; set; }

            [JsonProperty(NullValueHandling = NullValueHandling.Include)]
            [ParamDescription("代别")]
            public string Generation { get; set; }

            [ParamDescription("投入使用时间")]
            public DateTime InjectDate { get; set; }

            [JsonProperty(NullValueHandling = NullValueHandling.Include)]
            [ParamDescription("停止使用时间")]
            public DateTime StopDate { get; set; }

            [JsonProperty(NullValueHandling = NullValueHandling.Include)]
            [ParamDescription("是否删除")]
            public bool IsRemove { get; set; }

            [JsonProperty(NullValueHandling = NullValueHandling.Include)]
            [ParamDescription("操作者")]
            public int Operator { get; set; }

            [JsonProperty(NullValueHandling = NullValueHandling.Include)]
            [ParamDescription("创建时间")]
            public DateTime CreateDate { get; set; }

            [JsonProperty(NullValueHandling = NullValueHandling.Include)]
            [ParamDescription("修改时间")]
            public DateTime ModifyDate { get; set; }

        }
        #endregion
    }
}
